package com.zhf.demo03.factory;

import com.zhf.demo03.dao.UserDao;
import com.zhf.demo03.dao.UserDaoImp;

/**
 * @Author: ZhaoHuanfeng
 * @Date: 2020/10/15 23:47
 */
public class UserDaoFactory {
    /**
     * 通过工厂方法模式来实现UserDao实现类对象的创建
     * @return
     */
    public static UserDao getUserDao(){
        return new UserDaoImp();
    }
}
